// interface IUser {
//   userName: String
//   age: Number
// }
// const user: IUser = {
//   userName: '吴大勋',
//   age: 18
// }

type TUser = {
  userName: String
  age: Number
}
const user: TUser = {
  userName: '吴大勋',
  age: 18
}
// 什么时候推荐使用 type
/**
 * export type Method =
  | 'get' | 'GET'
  | 'delete' | 'DELETE'
  | 'head' | 'HEAD'
  | 'options' | 'OPTIONS'
  | 'post' | 'POST'
  | 'put' | 'PUT'
  | 'patch' | 'PATCH'
  | 'purge' | 'PURGE'
  | 'link' | 'LINK'
  | 'unlink' | 'UNLINK'

 */
